#-*- coding: utf-8 -*-
'''
@author: Sandro Sousa
@date: 14 de Outubro de 2013
@obs:
aula4 ex b
'''
import sys

#1)
try:
	f = open('ficha.text')
except IOError as e:
	print "I/O error ({0}): {1}".format(e.errno, e.strerror)

#2)
a = 1
b = 0
try:
	c = a / b
except ZeroDivisionError:
	print "Could not divide {0} by {1}.".format(a, b)
